/*模块，依赖注入*/
var bookStoreApp = angular.module('bookStoreApp',[
    "ngRoute","bookStoreCtrls","bookStoreDirectives"
]);
/*路由*/
bookStoreApp.config(function($routeProvider){
    $routeProvider.when("/hello",{
        templateUrl:"tpls/hello.html",
        controller:"HelloCtrl"
    }).when("/list",{
        templateUrl:"tpls/bookList.html",
        controller:"BookListCtrl"
    }).otherwise({
        redirectTo:"/hello"
    });
});